package dissertation.examples.ejb31.stateful;

import javax.ejb.Stateful;

@Stateful(name = "CountEJB")
public class CountBean {
    private int count;

    public void init(int count) {
        System.out.println("init(" + count + ")");
        this.count = count;
    }

    public int count() {
        System.out.println("count()");
        return ++count;
    }
}
